/**
 * Project Name:emm-basic
 * File Name:ActNodeDataServiceImpl.java
 * Package Name:com.emm.yixun.basic.service.impl
 * Date:2017年9月6日上午10:55:43
 *
*/

package com.emm.yixun.basic.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.basic.mapper.ActNodeDataMapper;
import com.emm.yixun.basic.service.ActNodeDataService;
import com.emm.yixun.common.model.dto.ActNodeDataDto;
import com.emm.yixun.common.model.dto.ActNodeQuery;
import com.emm.yixun.common.page.Page;

/**
 * ClassName:ActNodeDataServiceImpl <br/>
 * Function: 已办分页查询 <br/>
 * Date:     2017年9月6日 上午10:55:43 <br/>
 * @author   Administrator
 * @version  
 * @since    JDK 1.6
 * @see 	 
 */
@Service("actNodeDataService")
public class ActNodeDataServiceImpl implements ActNodeDataService{

    @Autowired
    private ActNodeDataMapper actNodeDataMapper;
    public Page<ActNodeDataDto> queryActHaveList(ActNodeQuery ActNodeQuery,int beginNum, int endNum) {
	Integer total = actNodeDataMapper.queryActHaveCount(ActNodeQuery);
	List<ActNodeDataDto> list = actNodeDataMapper.queryActHaveList(ActNodeQuery, beginNum, endNum);
	Page<ActNodeDataDto> page = new Page<ActNodeDataDto>(total, list);
	page.setPageSize(endNum);
	return page;
    }
	public List<ActNodeDataDto> queryActByBusinessKey(ActNodeQuery actNodeQuery, int beginNum, int endNum) {
		return actNodeDataMapper.queryActHaveList(actNodeQuery, beginNum, endNum);
	}

}

